/*
 * Moseycode
 * Copyright (C) 2008  Tom Gibara
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package com.tomgibara.mosey.vision.nat1ve;

import java.nio.ByteBuffer;

public class Native {

	public static final int ELLIPSE_FIELDS = 12;
	
	static {
        System.loadLibrary("mosey");
    }

	public static native boolean init(int width, int height, int order);

	public static native int process(boolean fillBuffer, byte[] yuvs, int w, int h, ByteBuffer buffer, int[] ellipseData);

	public static native void sample(int[] points, boolean[] samples, int viewWidth, int viewHeight);

	public static native void sampleAverages(int[] points, int[] averages, int viewWidth, int viewHeight);

	public static native boolean plot(ByteBuffer buffer);
	
}
